package com.happy.seatwork.vehicles_park;

public class Car extends Vehicles implements Shunt{

    //初始车位100个
    private static int count = 100;

    //调用父类构造方法
    public Car (String id){
        super(id);
    }

    //具体实现Shunt接口的park()方法
    @Override
    public void park(){
        //占用一个车位
        count--;
        System.out.println(id + "请右转至小车停车区，剩余车位" + count);
    }

    @Override
    //实现抽象方法
    public void remin(){

    }

    public static int getCount(){
        return count;
    }
}
